projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adf1bbe
)
[gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
author
Javier Jardón
<jjardon@gnome.org>
Tue, 22 Jun 2010 19:10:23 +0000
(21:10 +0200)
committer
Javier Jardón
<jjardon@gnome.org>
Tue, 22 Jun 2010 19:12:53 +0000
(21:12 +0200)
Also, allow the widget variable to be NULL
gtk/gtkaccessible.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaccessible.c
b/gtk/gtkaccessible.c
index a80e98ef4c8fe99240e2fb9232d3a9f4e60b8f79..8e85b31e34763cc8cc6c26d2897da947acbc5854 100644
(file)
--- a/
gtk/gtkaccessible.c
+++ b/
gtk/gtkaccessible.c
@@
-60,8
+60,7
@@
void
gtk_accessible_set_widget (GtkAccessible *accessible,
GtkWidget *widget)
{
- g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL);
- g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
+ g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
accessible->widget = widget;
}